package com.chenxin.interact.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.chenxin.interact.domain.wmsToMes.WmsToMesQuality;
import com.chenxin.interact.mapper.WmsToMesQualityMapper;
import com.chenxin.interact.service.IWmsToMesQualityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WmsToMesQualityServiceImpl implements IWmsToMesQualityService {
    @Autowired
    private WmsToMesQualityMapper wmsToMesQualityMapper;

    @Override
    public List<WmsToMesQuality> selectWmsToMesQualityList() {
        QueryWrapper<WmsToMesQuality> wrapper = new QueryWrapper<>();
        wrapper.eq("status", 0).last("order by create_date");
        return wmsToMesQualityMapper.selectList(wrapper);
    }
}
